
<div class="tabs">
	<ul class="tabs">
	
		<?php for($i = 0; $i < count($this->tab_names); $i++): ?>
		
		<?php
			if ($i == $this->stab)
			{
				$style = "stab";
			}
			else
			{
				if ($this->tab_activated[$i] == true)
				{
					$style = "tab";
				}
				else
				{
					$style = "dtab";
				}
			}
		?>
		
		<li id="tab-<?php echo $this->tab_names[$i]; ?>" class="<?php echo $style; ?>">
			<?php if ($i != $this->stab && $this->tab_activated[$i] == true): ?>
			<a href="<?php echo $this->tab_links[$i]; ?>">
			<?php endif; ?>
			
			<?php echo $this->tab_names[$i]; ?>
			
			<?php if ($i != $this->stab && $this->tab_activated[$i] == true): ?>
			</a>
			<?php endif; ?>
		</li>
	
		<?php endfor;?>
	
	</ul>
</div>

<div id="tab_content-<?php echo $this->stab; ?>" class="tab_content">

	<?php $this->tab_content->render(); ?>

</div>

